import request from '@/utils/request'

// 查询支出记录列表
export function classConsumptionRevenue(query) {
  return request({
    url: '/statistics/classConsumptionRevenue',
    method: 'get',
    params: query
  })
}

// 收入支出统计
export function incomeAndExpenditureStatistics(query) {
  return request({
    url: '/statistics/incomeAndExpenditureStatistics',
    method: 'get',
    params: query
  })
}

// 季度课消收入
export function quarterlyConsumptionRevenueStatistics(query) {
  return request({
    url: '/statistics/quarterlyConsumptionRevenueStatistics',
    method: 'get',
    params: query
  })
}

// 每年收入统计
export function annualIncomeStatistics() {
  return request({
    url: '/statistics/annualIncomeStatistics',
    method: 'get'
  })
}

// 每年课消收入统计
export function annualClassConsumptionRevenue() {
  return request({
    url: '/statistics/annualClassConsumptionRevenue',
    method: 'get'
  })
}

// 每年盈利统计
export function annualProfitStatistics() {
  return request({
    url: '/statistics/annualProfitStatistics',
    method: 'get'
  })
}
